package geecache

//PeerPicker is the inteface that must be implenmented to locate
// the peer that owns a specific key.
// 用于根据传入的key选择相应节点PeerGetter
type PeerPicker interface {
	PeerPicker(key string) (peer PeerPicker, ok bool)
}

//PeerGetter it the interface that must be implemented by a peer.
// 用于从对应group中查找缓存值
type PeerGetter interface {
	Get(group string, key string) ([]byte, error)
}
